<template>
  <div class="WriteLog">
    <van-nav-bar
        title="写日志"
        left-text=""
        left-arrow
        @click-left="$router.push('/MyIllnessLog')"
    />
    <div class="content">
      <van-field
          v-model="message"
          rows="15"
          autosize
          label=""
          type="textarea"
          placeholder="请输如您今日的病情感受"
      />
      <div class="bottom">
        <div class="picture">
          <van-uploader
              :after-read="afterRead"
              multiple
              :max-count="9"
              v-model="fileList"
          />
        </div>
        <div class="center">
          <van-button type="info">发布</van-button>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "WriteLog",
  data() {
    return {
      value: "",
      fileList: [{url: "", isImage: true}],
    };
  },
  methods: {},
};
</script>

<style scoped lang="less">

.content {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;

  .bottom {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    .center {
      margin-top: 20px;
    }
  }

}


</style>
